#ifndef FORM2_H
#define FORM2_H

#include <QWidget>

namespace Ui {
class Form2;
}

class Form2 : public QWidget
{
    Q_OBJECT

public:
    explicit Form2(QWidget *parent = 0);
    ~Form2();

private:
    Ui::Form2 *ui;
};

#endif // FORM2_H


//
#ifndef FORM2_H
#define FORM2_H

#include <QMainWindow>
#include <QTreeView>
#include <QtGui>
#include <QFileSystemModel>
#include <QDir>


namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();
       QFileSystemModel *model;
       QFileSystemModel *qlmodel;
       QStringList *filter;
       QFile *file;
       QString *txtPath;

private slots:
       void on_tree_direct_clicked(const QModelIndex &index);

       void on_listdirect_doubleClicked(const QModelIndex &index);

       void on_pushButton_clicked();

       void on_listdirect_clicked(const QModelIndex &index);

       void on_open_button_clicked();

       void on_saveas_clicked();

private:
    Ui::MainWindow *ui;

};

#endif // MAINWINDOW_H
